package cn.melonlib.nars.action.model.entity;

import cn.melonlib.cores.commons.model.entity.TenantRecordEntity;
import cn.melonlib.cores.model.anno.ModelComment;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.Type;

import javax.persistence.*;

@Data
@EqualsAndHashCode(callSuper = true)
@Entity(name = "NamesRecycleBin")
@Table(name = "nars_names_recycle_bin")
@ModelComment("回收站")
public class NamesRecycleBin extends TenantRecordEntity {

    @ModelComment("原始路径")
    private String path;

    @ModelComment("原始名称")
    private String name;

    @ModelComment("详细信息")
    @Column
    @Lob
    @Basic(fetch = FetchType.LAZY)@Type(type = "org.hibernate.type.TextType")
    private String body;

    @ModelComment("配置信息")
    @Column@Lob@Basic(fetch = FetchType.LAZY)@Type(type = "org.hibernate.type.TextType")
    private String config;
}
